﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace deneme
{
     class Edge
    {
        
        private Node _origin;
        private Node _destination;
        private double _distance;

     
        public Edge(Node origin, Node destination, double distance)
        {
            this._origin = origin;
            this._destination = destination;
            this._distance = distance;
            

        }
        //başlama
       
        public Node Origin
        {
            get { return _origin; }
            set { _origin = value; }
        }

        //hedef
        public Node Destination
        {
            get { return _destination; }
            set { _destination = value; }
        }

        //mesafe
        public double Distance
        { 
            get { return _distance; }
            set {_distance = value;}
        }

    }
}
